home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / arch / arm / mach-iop13xx / include / mach / uncompress.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  427 b   |  24 lines

  1. #include <asm/types.h>
  2. #include <linux/serial_reg.h>
  3. #include <mach/hardware.h>
  4.  
  5. #define UART_BASE ((volatile u32 *)IOP13XX_UART1_PHYS)
  6. #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE)
  7.  
  8. static inline void putc(char c)
  9. {
  10.     while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE)
  11.         barrier();
  12.     UART_BASE[UART_TX] = c;
  13. }
  14.  
  15. static inline void flush(void)
  16. {
  17. }
  18.  
  19. /*
  20.  * nothing to do
  21.  */
  22. #define arch_decomp_setup()
  23. #define arch_decomp_wdog()
  24.